@import "./mixin";
@import "./var";

.detail-main{
    width: 1200px;
    margin: auto;
}


.breadcrumb {
    padding: 10px 0;
    margin-bottom: 0;
    li {
        display: inline-block;
    }
    .active{
        color: #808080;
    }
}

.goods-detail{
    &::after{@include clear()}
    .preview-wrap {
        width: 366px;
        float: left;
        .share-collect {
            padding: 10px;
            a {
                margin-right: 20px;
            }
        }
    }

    .basic-info-wrap {
        float: left;
        width: 645px;
        margin-left: 10px;
        h1 {
            font-size: 16px;
            margin: 10px 0;
        }
        .desc {
            font-size: 14px;
            color: #616161 !important;
        }
        .item-block {
            background: url(https://www.leishen.cn/template/web/default/public/img/goods/goods_detail_bg.png) repeat-x;
            padding: 10px 0;
            position: relative;
            .statistical {
                position: absolute;
                right: 10px;
                top: 0;
                li {
                    float: left;
                    text-align: center;
                    position: relative;
                    font-size: 14px;
                    width: 100px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    &:first-child{    margin-right: 20px;}
                    a {
                        color: #141414!important;
                        margin-top: -5px;
                        display: block;
                    }
                }
            }
        }
        .item-line {
            font-size: 14px;
            min-height: 35px;
            line-height: 35px;
            dt {
                float: left;
                width: 85px;
                font-weight: normal;
                padding-left: 10px;
                font-size: 12px;
                margin-right: 10px;
            }
            .yuan {
                font-size: 18px;
            }
            .price {
                font-size: 30px;
                font-weight: bold;
            }
            .reward {
                padding-left: 10px;
                position: relative;
                .ky {
                    top: -10px;
                    position: absolute;
                }
                .note1 {
                    width: 170px;
                    line-height: 20px;
                    position: relative;
                    padding: 20px;
                    border: 2px solid #e5e5e5;
                    background-color: #ffffff;
                    color: #999999;
                    span{
                        width: 0;
                        height: 0;
                        font-size: 0;
                        overflow: hidden;
                        position: absolute;
                    }
                    .bot {
                        border-width: 20px;
                        border-style: solid solid solid;
                        border-color: #e5e5e5 transparent transparent;
                        left: 98px;
                        bottom: -40px;
                    }
                    .top {
                        border-width: 20px;
                        border-style: solid solid solid;
                        border-color: #ffffff transparent transparent;
                        left: 98px;
                        bottom: -38px;
                    }
                }
            }
            .service a {
                margin: 0 5px;
            }
            .buy-btn {
                margin: 20px 0;
                .ns-text-color {
                    color: #e23435 !important;
                }
                
                button {
                    width: 180px;
                    height: 40px;
                    margin-top: 20px;
                    margin-right: 10px;
                    font-size: 16px;
                    color: #000 !important;
                    border: none!important;
                    i {
                        margin-right: 5px;
                        font-size: 16px;
                    }
                }
            }
            .merchant-service {
                overflow: hidden;
                margin: 10px 0;
                dd {
                    float: left;
                    padding: 0 10px 0 0;
                    margin: 0;
                    span {
                        cursor: pointer;
                        &::before{
                            content: ' ';
                            width: 20px;
                            height: 20px;
                            background: url(https://www.leishen.cn/template/web/default/public/img/goods/service_guarantee.png) no-repeat !important;
                            display: inline-block;
                            vertical-align: middle;       
                        }
                    }
                }
            }
        }
        .item-line > dd {
            margin-left: 95px;
            .ns-text-color {
                color: #00d7dc !important;
                border-color: #00d7dc !important;
            }
            .ns-text-color {
                color: #00d7dc !important;
                border-color: #00d7dc !important;
            }
        }
        .item-line > * {
            height: inherit;
            line-height: inherit;
            font-size: 12px;
        }
        
        .buy-number {
            margin: 10px 0;
            .num-wrap {
                display: inline-block;
                vertical-align: middle;
                input {
                    font-size: 12px;
                    padding: 5px;
                    height: 34px;
                    border: 1px solid;
                    width: 44px;
                    vertical-align: middle;
                }
                .operation {
                    display: inline-block;
                    vertical-align: middle;
                    margin-left: -3px;
                }
                span {
                    width: 17px;
                    height: 17px;
                    overflow: hidden;
                    cursor: pointer;
                    border: 1px solid;
                    border-left: none;
                    display: block;
                    line-height: 17px;
                    text-align: center;
                    user-select: none;
                }
            }
        }
        .go-phone {
            img{
                display: inline-block;
                vertical-align:middle
                
            }
            position: relative;
            display: block;
            padding-right: 127px;
            float: right;
            .qrcode-wrap {
                border: 1px solid;
                box-shadow: 0 0 10px rgb(0 0 0 / 12%);
                height: 120px;
                overflow: hidden;
                padding: 10px;
                position: absolute;
                width: 120px;
                left: 30px;
                top: -50px;
                display: none;
            }
        }
    }

    .new-right {
        width: 170px;
        float: right;
        position: relative;
        h1 {
            width: 100%;
            margin: 0px;
            font-size: 14px;
            text-align: center;
            i {
                display: inline-block;
                width: 14px;
                height: 14px;
                margin-top: -1px;
                cursor: pointer;
            }
        }
        img {
            height: 100%;
            margin: 0 auto;
        }
        li {
            width: 100%;
            height: 147px;
            margin-top: 7px;
            div {
                width: 100%;
                height: 100px;
                text-align: center;
            }
            p {
                width: 100px;
                text-align: center;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                margin: 0 auto;
                margin-top: 3px;
            }
            .goods-price {
                margin-top: 0px;
            }
        }
    }

    .new-right>div {
        height: 1px;
        width: 35px;
        background: #f1f1f1;
        display: inline-block;
        position: absolute;
        top: 7px;
    }

    .line-right {
        right: 0px;
    }

    .ns-border-color-gray {
        border-color: #e5e5e5 !important;
    }

    i, em {
        font-style: normal;
    }

    button, input {
        overflow: visible;
    }

    .pull-right {
        float: right !important;
    }

    .ns-border-color-gray-shade-20 {
        border-color: #b7b7b7 !important;
    }

    .btn-list {
        margin-top: 10px;
        .paymethod-radio {
            display: inline-block;
            height: 65px;
            border-radius: 5px;
            text-align: center;
            width: 180px;
            cursor: pointer;
            border: 1px solid #ebebeb;
            p {
                line-height: 30px;
            }
        }
    }

    .recommend-product {
        float: left;
        width: 210px;
        .hot-product {
            border: 1px solid;
            margin-bottom: 15px;
            li {
                padding: 0 10px 10px;
                line-height: 50px;
            }
        }
        h3 {
            font-size: 14px;
            padding-left: 10px;
            margin: 0 0 10px;
            height: 35px;
            line-height: 35px;
        }
        .ranking-list {
            border: 1px solid;
            height: 500px;
            &::after{
                @include clear()
            }
            h3 {
                margin: 0;
            }
            .nav-tabs {
                &::before{
                    display: table;
                    content: " ";
                }
                li {
                    width: 50%;
                    text-align: center;
                    float: left;
                    margin-bottom: -1px;
                    position: relative;
                    display: block;
                    a {
                        padding: 4px 10px;
                        font-size: 12px;
                        margin-right: 0;
                    }
                    .active.ns-border-color-hover > a {
                        border-color: #00eef3 !important;
                    }
                    .active.ns-bg-color-hover > a {
                        background-color: #00eef3 !important;
                        color: #333 !important;
                    }
                }
                border-bottom: 1px solid;
                &::after{
                    @include clear()
                }
            }
            .active.ns-bg-color-hover > a {
                // background-color: #00eef3 !important;
                color: #333 !important;
            }
            .tab-content > .active {
                display: block;
            }
            .tab-content{
                ul {
                    padding: 10px;
                    height: 150px;
                    &::after{
                        @include clear()
                    }
                    li {
                        clear: both;
                        height: 85px;
                        position: relative;
                        .p-img {
                            float: left;
                            margin-right: 5px;
                            padding-bottom: 5px;
                            a {
                                position: relative;
                                display: block;
                                width: 85px;
                                height: 85px;
                                img {
                                    position: absolute;
                                    left: 50%;
                                    top: 50%;
                                    transform: translate(-50%, -50%);
                                }
                            }
                        }
                        .p-name {
                            margin-left: 90px;
                            overflow: hidden;
                            height: 40px;
                            margin-bottom: 5px;
                        }
                        .p-price {
                            margin-left: 90px;
                            font-size: 14px;
                            font-weight: bold;
                            overflow: hidden;
                            color: #00d7dc !important;
                        }
                    }
                }
                .tab-pane {
                    display: none;
                    ul {
                        padding: 10px;
                        li {
                            clear: both;
                            height: 85px;
                            position: relative;
                        }
                    }
                }
            }
        }
    }

    .ns-bg-color-gray-fadeout-50 {
        background-color: rgba(229, 229, 229, 0.5) !important;
    }

    .ns-bg-color-gray {
        background-color: #e5e5e5 !important;
    }

    .detail-wrap {
        width: 980px;
        position: relative;
        margin-left: 220px;
        overflow: hidden;
        .nav-tabs {
            border-bottom: 1px solid;
            &::before{
                display: table;
                content: " ";
            }
            li {
                float: left;
                margin-bottom: -1px;
                position: relative;
                display: block;
                a {
                    font-size: 14px;
                    margin-right: 0;
                    position: relative;
                    display: block;
                    padding: 8px 15px;
                    color: #353535;
                    line-height: 1.53846154;
                    border: 1px solid transparent;
                }
            }
            &::after{
                @include clear()
            }
        }
        .tab-content {
            position: relative;
            .active {
                display: block;
            }
        }
        .tab-pane {
            padding: 10px 0;
            display: none;
            img{
                width: 100% !important;
            }
        }
        #tab_attr{
            ul {
                overflow: hidden;
                li {
                    margin-bottom: 0;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    width: 33.33%;
                    float: left;
                    margin-bottom: 5px;
                    padding: 0 15px;
                    line-height: 35px;
                    border-bottom: 1px solid #ebebeb;
                }
            }
            .p-parameter-list {
                margin: 10px 0;
                border: 1px solid #ebebeb;
            }
        } 
        .main-block {
            padding-top: 40px;
            padding-left: 10px;
            padding-bottom: 40px;
            text-align: center;
            border: 1px solid #ebebeb;
            .percent {
                width: 280px;
                float: left;
                .per-num {
                    height: 85px;
                    font-size: 24px;
                    color: #00d7dc;
                    line-height: 85px;
                }
                .per-title {
                    color: #757575;
                    font-size: 14px;
                    line-height: 15px;
                    margin-top: 5px;
                }
            }
            .comment_ci {
                width: 687px;
                display: inline-block;
                li {
                    list-style: none;
                    display: inline-block;
                    float: left;
                    position: relative;
                    margin: 10px;
                    cursor: pointer;
                    background: #fff;
                    border-radius: 20px;
                    border: 1px solid #ebebeb;
                    padding: 0;
                    a {
                        display: inline-block;
                        padding: 0 20px;
                        line-height: 35px;
                        font-size: 14px;
                        color: #666;
                        text-decoration: none;
                    }
                }
            }
            .evaluate-list {
                padding: 0 0;
                ul > li {
                    padding: 15px;
                    border-bottom: 1px solid;
                }
                .user-info {
                    width: 100px;
                    float: left;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    img {
                        border-radius: 50%;
                        margin-right: 5px;
                    }
                }
                .evaluate-content {
                    margin-left: 100px;
                    position: relative;
                    .comment_ci {
                        width: 750px;
                        margin-left: -10px;
                    }
                }
            }
            li {
                float: left;
            }
        }
    }
}

.clearfix{
    &::before{
        display: table;
        content: " ";
    }
    &::after{
        @include clear();
    }
}

.goods-detail .basic-info-wrap .item-line.buy-btn button {
    width: 180px;
    height: 40px;
    margin-right: 10px;
    font-size: 16px;
    color: #000 !important;
    border: none!important;
}

.goods-detail .basic-info-wrap .item-line.merchant-service dd {
    float: left;
    padding: 0 10px 0 0;
    margin: 0;
}

.goods-detail .basic-info-wrap .item-line .buy_dd{
    margin-top: 20px;
    button{
        cursor: pointer;
        .js-buy-now{
            background-color: rgba(236, 8, 8,.3);
        }
        .js-add-cart{
            background-color: rgba(153, 248, 1, 0.3);
        }
    }
}

.goods-detail .new-right img {
    height: 100%;
    margin: 0 auto;
    display: inline-block;
    vertical-align: sub;
}

.js-add-cart,.js-buy-now {
    background-color: rgba(236, 8, 8,.5);
}